<template>
  <el-form label-width="120px">
    <el-form-item label="企业名称:">
      <el-input
        disabled
        style="width:400px"
        v-model="companyInfo.companyAddress"
      ></el-input>
    </el-form-item>
    <el-form-item label="公司电话:">
      <el-input
        disabled
        style="width:400px"
        v-model="companyInfo.companyPhone"
      ></el-input>
    </el-form-item>
    <el-form-item label="邮箱:">
      <el-input
        disabled
        style="width:400px"
        v-model="companyInfo.mailbox"
      ></el-input>
    </el-form-item>
    <el-form-item label="备注:">
      <el-input
        disabled
        style="width:400px"
        v-model="companyInfo.remarks"
      ></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
// 导入查询企业api
import { company } from '@/api/setting.js'
export default {
  data () {
    return {
      companyInfo: ''
    }
  },
  async created () {
    // 当前登陆人的企业id
    const res = await company(this.$store.state.user.userInfo.companyId)
    this.companyInfo = res.data
    // console.log(res)
  }
}
</script>

<style></style>
